package com.tfswx.jcyw.sqlmodel.api.bean.table;

import lombok.Data;

/**
 * @author 张述江
 * @date 2023/9/15
 */
@Data
public class TableFromItem implements FromItem {
    private String tableName;
    private Alias tableAlias;

    public TableFromItem(String tableName, Alias alias) {
        this.tableName = tableName;
        this.tableAlias = alias;
    }

    public TableFromItem(String tableName) {
        this(tableName, null);
    }

    public TableFromItem() {
        this(null);
    }

    @Override
    public String toString() {
        return tableName;
    }

}
